
// @import './iconfont.css';
@import '~qup-component/theme/qup-theme.scss';
@import './element-ui.scss';

$--color-primary: #3DC094;
$--font-color-primary: #606266;

$color-border:#e9e9e9;


html,body{
  position: relative;
  height: 100%;
}
body {
  font-size: 12px;
  color: #333;
}
#app {
  height: 100%;
}

.unifiedBg {
  background-color: white;
}

.table-list-box{
  .table-list-header, .table-list-header th{
    border-top: 0;
  }
}

.btn-green{
  color: $qup-color-primary !important;
  cursor: pointer;
}
.btn-black{
  color: $--font-color-primary !important;
  cursor: pointer;
}
.color-grey{
  color: #999;
}
.qup-title-box{
  margin-bottom: 10px;
}

// 表格行高亮
.selected-highlight{
  td{
    background-color: #cdf4e8 !important;
  }
  &.hover-row>td{
    background-color: #F5F7FA !important;
  }
}

// 启用禁用
.icon-off {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-danger;
}

.icon-on {
  margin-right: 10px !important;
  font-size: 16px !important;
  vertical-align: middle !important;
  color: $qup-color-primary;
}

//分页通用样式
.pager-box{
  text-align: center;
  margin-top: 40px;

  .el-pagination{

    .el-input__inner{
      font-size: 12px;
    }

    .el-pager li{
      font-size: 12px;
    }
  }
}

// 左侧选择列表通用样式
.left-choose-list-box{
  background-color: #fff;
  box-shadow:0px 2px 20px 0px rgba(153,153,153,0.2);

  .left-choose-list-header{
    
    .title{
      position: relative;
      padding: 20px;
      padding-bottom: 10px;

      .add-icon-box{
        position: absolute;
        right: 20px;
        bottom: 6px;

        .add{
          font-size: 24px;
          color: $qup-color-primary;
          cursor: pointer;
        }
      }
    }

    .search{
      padding-left: 20px;
      padding-right: 10px;
      margin-bottom: 10px;

      .el-input__inner{
        border: 0;
        padding-left: 20px !important;
        padding-right: 0 !important;
        height: 20px !important;
        line-height: 20px !important;
      }

      .el-input__prefix{
        left: 0;

        .tree-search-icon{
          font-size: 16px;
          color: $colorA;
          margin-top: 2px;
        }
      }
    }
  }

  .left-choose-list-content{
    padding: 0 20px;
  }
}

// 二级页面通用样式
.qup-full-page{
  height:100%;
  padding: 12px 12px 0;
  box-sizing: border-box;
  .qup-title-box{
    margin-bottom: 10px;
  }
}

%spacing-styles {
  padding: 10px 0;
  padding-left: 0;
}
$border-color: #f0f0f0;

.bread-box {
  @extend %spacing-styles;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid $border-color;

  .el-breadcrumb {
    font-size: 12px;
  }
}
.qup-full-page .bread-box{
  padding-top:0;
}

.qup-page-container{
  height: 100%;
  .qup-page-header ~.qup-page-content{
    height: calc(100% - 52px - 12px);
    overflow: hidden;
    padding:0;
    box-sizing: border-box;
    position: relative;
    .qup-page-scrollbar{
      position: relative;
      height: 100%;
      .el-scrollbar__wrap{
        overflow-x:hidden;
        .el-scrollbar__view{
          padding-right: 10px;
        }
      }
    }
  }
}


/deep/ .my-mini-btn {
  display: inline-block !important;
  padding: 0 5px !important;
  margin-left: 0 !important;
  margin-right: 10px;

  &:last-child {
    margin-right: 0;
  }
}

/* .hide-search-btnmore{
  /deep/ .qup-search-form .btn-more{
    display: none;
  }
} */


.custom-dlg{
  .el-dialog__body{
    max-height: 60vh;
    overflow-y: auto;
  }
}

.dialog-content-no-padding-top {
  .el-dialog .el-dialog__body{
    padding-top: 0;
   }
}